import request from '@/utils/request'

// 查询产品权威认证信息列表
export function listCertification(query) {
  return request({
    url: '/demo/certification/list',
    method: 'get',
    params: query
  })
}
export function listZhCertification(query) {
  return request({
    url: '/demo/certification/getAIList',
    method: 'get',
    params: query
  })
}

// 查询产品权威认证信息详细
export function getCertification(id) {
  return request({
    url: '/demo/certification/' + id,
    method: 'get'
  })
}

// 新增产品权威认证信息
export function addCertification(data) {
  return request({
    url: '/demo/certification',
    method: 'post',
    data: data
  })
}

// 修改产品权威认证信息
export function updateCertification(data) {
  return request({
    url: '/demo/certification',
    method: 'put',
    data: data
  })
}

// 删除产品权威认证信息
export function delCertification(id) {
  return request({
    url: '/demo/certification/' + id,
    method: 'delete'
  })
}
